/*
 * Copyright @ 2024 weili23
 * com.sky.service 15:54
 * All right reserved.
 */

package com.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

/**
 * @desc:
 * @author: weili23
 * @createTime: 2024/11/7 15:54
 * @version: v1.0
 */
public interface ShoppingCardService extends IService<ShoppingCart> {
    /**
    * 添加购物车
     */
    void addShoppingCard(ShoppingCartDTO shoppingCartDTO);

    /**
    * 查询购物车
     */
    List<ShoppingCart> getShoppingCardList();

    /**
     * 清空购物车
     */
    void cleanShoppingCart();

    /**
    * 删除购物车中的某一个商品
     */
    void subShoppingCart(ShoppingCartDTO shoppingCartDTO);
}
